package com.babyqiao.wallpaper.manager.service;

import com.babyqiao.wallpaper.manager.controller.dto.CategoryPicQuery;
import com.babyqiao.wallpaper.manager.entity.WallpaperCategoryPic;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author qinglongzhai
 * @date 2020/12/15
 */
public interface CategoryPicService extends IService<WallpaperCategoryPic> {
    /**
     * 添加查询条件
     *
     * @param categoryPicQuery
     * @return
     */
    QueryWrapper<WallpaperCategoryPic> addSelectCondition(CategoryPicQuery categoryPicQuery);

    /**
     * 修改上线状态
     *
     * @param state: * @return: com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper<com.babyqiao.wallpaper.manager.entity.WallpaperCategoryPic>
     * @Author QLZ
     * @Date 2020/12/17
     * * @param id:
     */

    UpdateWrapper<WallpaperCategoryPic> addUpdataCondition(String id, Integer state);
}
